package com.lzx.lizhenxing.pay.service;


import com.lzx.lizhenxing.pay.param.PayParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 生成支付的交易订单
 * 进行回调处理
 */
public interface PayService {

    /**
     * 返回支付宝生成的二维码路径
     *
     * @param payParam
     * @return
     */
    String createPayOrder(PayParam payParam);

    /**
     * 支付回调后需要进行的操作
     *
     * @param request
     * @param response
     */
    void notify(HttpServletRequest request, HttpServletResponse response);
}
